package com.example.demo.pojo.req;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author tsj
 * @date 2023/9/21 19:21
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class SendMessageReq {
    @NotBlank(message = "主题不能为空")
    @ApiModelProperty("主题")
    private String topic;

    @NotBlank(message = "信息不能为空")
    @ApiModelProperty("信息")
    private String message;
}
